package com.eet.excel.service;

import com.eet.excel.model.OrderModel;
import com.eet.excel.model.SelectRequest;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 导出服务
 *
 * @author Administrator
 */
public interface ExportService {

    /**
     * 动态导出
     *
     * @param response      相应
     * @param selectRequest 选中列实体
     * @param data          表体数据
     * @return 是否成功
     */
    boolean dynamicExport(HttpServletResponse response, SelectRequest selectRequest, List<OrderModel> data);

    /**
     * 查询所有订单数据
     *
     * @return 订单数据集合
     */
    List<OrderModel> findAll();
}
